package com.hooya.fa.eu.biz.dao.repository.impl;

import com.hooya.fa.eu.biz.dao.entity.ProfitCheckDaily;
import com.hooya.fa.eu.biz.dao.mapper.ProfitCheckDailyMapper;
import com.hooya.fa.eu.biz.dao.repository.ProfitCheckDailyRepository;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Description 1
 * @Author : Zongz
 * @Copyright Copyright (c) 豪雅集团
 * @Create 2025/3/20
 * @Version 1.1.0
 */
@Slf4j
@Repository
@AllArgsConstructor
public class ProfitCheckDailyRepositoryImpl implements ProfitCheckDailyRepository {

    private final ProfitCheckDailyMapper profitCheckDailyMapper;

    @Override
    public int batchSave(List<ProfitCheckDaily> profitCheckDailyList) {
        int i = 0;
        for (ProfitCheckDaily profitCheckDaily : profitCheckDailyList) {
            i += profitCheckDailyMapper.insert(profitCheckDaily);
        }
        return i;
    }
}
